package com.renderer
{
	import com.util.GradientCanvas;
	
	public class ButtonSkin extends GradientCanvas
	{
		private var upSkinStyleName:String = "GradientButtonUpSkin";
		private var downSkinStyleName:String = "GradientButtonDownSkin";
		private var overkinStyleName:String = "GradientButtonOverSkin";
		private var disabledSkinStyleName:String = "GradientButtonUpSkin";
		
		protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
			switch (name) {
				case "upSkin":
					styleName = upSkinStyleName;
					break;
				case "overSkin":
					styleName = overkinStyleName;
					break;
				case "downSkin":
					styleName = downSkinStyleName;
					break;
				case "disabledSkin":
					styleName = disabledSkinStyleName;
					break;
			}
			
			super.updateDisplayList(unscaledWidth,unscaledHeight);
		}
	}
}